package com.demo.order.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 订单主表
 *
 * @author DayDayUp
 * create on 2023-05-18
 **/
@Data
@Table("order_main")
public class OrderMain {
    @Id(keyType = KeyType.Generator,value = KeyGenerators.flexId)
    private Long id;

    @Column("order_no")
    private String orderNo;

    @Column("create_by")
    private Long createBy;

    @Column("create_time")
    private LocalDateTime createTime;

    @Column("update_by")
    private Long updateBy;

    @Column("update_time")
    private LocalDateTime updateTime;


}
